package test.project;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

public class LoginScreenActivity extends Activity{
    OnClickListener loginButtonPressedListener = new OnClickListener() {
		
		public void onClick(View v) {
			Intent intent = new Intent(LoginScreenActivity.this, MainMenueActivity.class);
			LoginScreenActivity.this.startActivity(intent);
		}
	};
    OnClickListener registerButtonPressedListener = new OnClickListener() {
		
		public void onClick(View v) {
			Intent intent = new Intent(LoginScreenActivity.this, RegisterScreenActivity.class);
			LoginScreenActivity.this.startActivity(intent);
		}
	};
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
    		super.onCreate(savedInstanceState);
    		
			setContentView(R.layout.loginscreen);
    		Button loginButton = (Button)findViewById(R.id.loginButton1);
    		loginButton.setOnClickListener(loginButtonPressedListener);
    		Button registerButton = (Button)findViewById(R.id.registerButton1);
    		registerButton.setOnClickListener(registerButtonPressedListener);
    		
        
    }

}
